package net.steam.easyjoboa.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Leave entity. @author MyEclipse Persistence Tools
 */

public class Leave implements java.io.Serializable {

	// Fields

	private Integer leaveId;
	private Employee employee;
	private Date startDate;
	private Date endDate;
	private String status;
	private String reason;
	private String type;
	private Set leaveChecks = new HashSet(0);

	// Constructors

	/** default constructor */
	public Leave() {
	}

	/** minimal constructor */
	public Leave(Employee employee, String status, String reason, String type) {
		this.employee = employee;
		this.status = status;
		this.reason = reason;
		this.type = type;
	}

	/** full constructor */
	public Leave(Employee employee, Date startDate, Date endDate,
			String status, String reason, String type, Set leaveChecks) {
		this.employee = employee;
		this.startDate = startDate;
		this.endDate = endDate;
		this.status = status;
		this.reason = reason;
		this.type = type;
		this.leaveChecks = leaveChecks;
	}

	// Property accessors

	public Integer getLeaveId() {
		return this.leaveId;
	}

	public void setLeaveId(Integer leaveId) {
		this.leaveId = leaveId;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Set getLeaveChecks() {
		return this.leaveChecks;
	}

	public void setLeaveChecks(Set leaveChecks) {
		this.leaveChecks = leaveChecks;
	}

}